var loadingBox
var layer
var laydate
var form
var element
function loading() {
    loadingBox = layer.load(1, {
        shade: [0.7, '#FFF']
    })
}

layui.use(['layer', 'laydate', 'form', 'element'], function () {
    layer = layui.layer;
    laydate = layui.laydate;
    element = layui.element;
    form = layui.form;
})